package com.yxhl.zoume.core.func.map;

import android.text.TextUtils;

/**
 * Created by vhawk on 15/11/13.
 */
public class ZMLatLng {

    private String locType;
    private String lngLat;
    private double lng;
    private double lat;

    public void parseLngLat() {

        if (!TextUtils.isEmpty(lngLat)) {
            String[] locations = lngLat.split(",");
            try {
                setLng(Double.parseDouble(locations[0]));
                setLat(Double.parseDouble(locations[1]));
            } catch (Exception e) {
                setLng(0);
                setLat(0);
            }
        }
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public String getLocType() {
        return locType;
    }

    public void setLocType(String locType) {
        this.locType = locType;
    }

    public String getLngLat() {
        return lngLat;
    }

    public void setLngLat(String lngLat) {
        this.lngLat = lngLat;
    }
}
